//
//  JWSearchbarTextField.m
//  见闻新闻
//
//  Created by brother on 16/2/27.
//  Copyright © 2016年 JoanBoat. All rights reserved.
//

#import "JWSearchbarTextField.h"


@implementation JWSearchbarTextField

+ (JWSearchbarTextField *)customWithTextField {
    JWSearchbarTextField *textField = [[JWSearchbarTextField alloc] initWithFrame:CGRectMake(0, 0, 220, 30)];
    textField.placeholder = @"搜索";
    textField.borderStyle = UITextBorderStyleRoundedRect;
    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"searchbar_textfield_search_icon"]];
    imageView.frame = CGRectMake(0, 0, 30, 30);
    imageView.contentMode = UIViewContentModeCenter;
    textField.leftView = imageView;
    textField.leftViewMode = UITextFieldViewModeAlways;
    return textField;
}

@end
